package com.link.gateway.core.comproperty;

/**
 * @author guoshan
 * @Description: 一些不便于分类的常量
 * @date 19-8-22 下午2:40
 **/
public class OtherConstants {

    /**
     * 职责URL的REDISKEY前缀
     */
    public static final String DUTY_URL_KEY_PEX = "DUTY_URL_" ;

    /**
     * 存储URL黑名单的键
     */
    public static final String TABLE_BLACK_IP_KEY = "blackIp" ;

    /**
     * 存储URL白名单的键
     */
    public static final String TABLE_WHITE_IP_KEY = "whiteIp" ;

    /**
     * 黑白名单在guava缓存中的键
     */
    public static final String BLACK_WHITE_IP_CACHE_KEY = "blackWhiteIpCacheKey" ;

    /**
     * 企业参数对应的键在map中的key
     */
    public static final String CORP_PROPERTY_KEY = "corpPropertyKey";

    /**
     * corpId
     */
    public static final String CORPID = "corpId";

    /**
     * 是否记录接口访问日志标识
     */
    public static final String RECORD_INTERFACE_LOG_FLAG = "recordInterfaceLogFlag";

    /**
     * exchange 中作为key 存储当前登录用户
     */
    public static final String CURRENT_USER = "currentUser";

    /**
     * exchange 中作为key 存储当前token范围
     */
    public static final String TOKEN_SCOPE = "tokenScope";

    public static final String ORIG_URL = "origUrl";

    /**
     * 当前clientId
     */
    public static final String CURRENT_CLIENT_ID = "currentClientId";

    /**
     * @description 用来标识路由是否需要忽略某些全局拦截器
     * @author 郭闪
     * @date 2019/12/11
     */
    public static final String ATTRIBUTE_IGNORE_GLOBAL_FILTER = "ignoreGlobalFilter";
    /**
     * 记录请求的路径，不包含域名端口
     */
    public static final String REQ_PATH = "requestPath";
}
